/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Formas;

import Helpers.ETransformacoes;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.geom.Rectangle2D;
import java.util.concurrent.LinkedBlockingQueue;

/**
 *
 * @author Pedro
 */
public abstract class Forma
{
    private int sX;
    private int sY;
    public int xCentro,yCentro;
    private Color cor;
    public LinkedBlockingQueue<ETransformacoes> transf;

    protected Forma(int sX,int sY)
    {
      this.sX = sX;
      this.sY = sY;
      transf = new LinkedBlockingQueue<ETransformacoes>();
      transf.add(ETransformacoes.None);
    }

    /**
     * @return the sX
     */
    public int getsX() {
        return sX;
    }

    /**
     * @param sX the sX to set
     */
    public void setsX(int sX) {
        this.sX = sX;
    }

    /**
     * @return the sY
     */
    public int getsY() {
        return sY;
    }

    /**
     * @param sY the sY to set
     */
    public void setsY(int sY) {
        this.sY = sY;
    }

    public abstract Forma drawForma(Graphics g);

    /**
     * @return the cor
     */
    public Color getCor() {
        return cor;
    }

    /**
     * @param cor the cor to set
     */
    public void setCor(Color cor) {
        this.cor = cor;
    }

    public boolean pertenceAForma(int x, int y)
    {
       return false;
    }
    
}
